package com.zjxh.zjxh.common.constant;

import cn.hutool.core.collection.ListUtil;
import java.text.DecimalFormat;
import java.time.format.DateTimeFormatter;
import java.util.List;

/**
 * @author: Oyp
 * @date: 2020/11/9 on 5:30 下午
 * @desc: ⠀
 */
public class Constant {

  public static final String ALL = "全部";
  public static final int INT_ZERO = 0;
  public static final int INT_ONE = 1;
  public static final String STR_ONE = "1";
  public static final int INT_TWO = 2;
  public static final int INT_THREE = 3;
  public static final int INT_FOUR = 4;
  public static final int INT_Five = 5;
  public static final int INT_SIX = 6;
  public static final int INT_SEVEN = 7;
  public static final int INT_EIGHT = 8;
  public static final int INT_NINE = 9;
  public static final int INT_THIRTY_TWO = 32;
  public static final String SUCCESS = "SUCCESS";

  public static final DecimalFormat DECIMAL_FORMAT_THREE = new DecimalFormat("#.000000");
  /** header参数 */
  public static final String HEADER_USER_ID = "user-id";

  public static final String TOKEN = "token";
  public static final String PLATFORM = "platform";

  public static final String HEADER_USERNAME = "username";
  public static final String HEADER_IP = "ip";

  public static final List<String> LETTERS_26 =
      ListUtil.toList(
          "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R",
          "S", "T", "U", "V", "W", "X", "Y", "Z");

  /** 年月日时分秒 */
  public static final DateTimeFormatter YYYY_MM_DD_HH_MM_SS =
      DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
  /** 年月日时分 */
  public static final DateTimeFormatter YYYYYMMMDDDHHH_MM =
      DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm");

  public static final DateTimeFormatter YYYYMMDDHHMMSS =
      DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
  public static final DateTimeFormatter YYYYMMDD = DateTimeFormatter.ofPattern("yyyyMMdd");

  public static final DateTimeFormatter YYYYMMDDHHMMSSS =
      DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS");

  public static final DateTimeFormatter YYYY_MM_DD_HH_MM =
      DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
  /** 年月日 */
  public static final DateTimeFormatter YYYY_MM_DD = DateTimeFormatter.ofPattern("yyyy-MM-dd");

  public static final DateTimeFormatter MM_DD_HH_MM = DateTimeFormatter.ofPattern("MM-dd HH:mm");
  /** 时分 */
  public static final DateTimeFormatter HH_MM = DateTimeFormatter.ofPattern("HH:mm");

  /** 登陆注册sms */
  public static final List<String> SMS_LOGIN_REG =
      ListUtil.toList("REG_SMS_CODE", "LOGIN_SMS_CODE");
}
